﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="module-list.aspx.cs" Inherits="SmartSpace.WebApp._console.core.module_list" MasterPageFile="~/_console/_console.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    模块列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkUpload" runat="server" NavigateUrl="~/_console/core/module-upload.aspx">上传模块</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <table style="width: 100%;" cellpadding="0" cellspacing="0">
        <tr>
            <td style="vertical-align: top; padding-right: 10px;">
                <div class="box">
                    <h2>已发布的模块列表</h2>
                    <div class="block">
                        <table class="list">
                            <asp:Repeater ID="_ctlList" runat="server">
                                <HeaderTemplate>
                                    <thead>
                                        <tr>
                                            <th>-
                                            </th>
                                            <th>Caption
                                            </th>
                                            <th>Code
                                            </th>
                                            <th>Package
                                            </th>
                                            <th>Version
                                            </th>
                                            <th>Type
                                            </th>
                                        </tr>
                                    </thead>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <span id="_ctlLabel" runat="server" visible='<%# IsSelected(Eval("Id")) %>'>已选择</span>
                                            <a id="_ctlLink" href='<%# Eval("Id","?id={0}") %>' runat="server" visible='<%# !IsSelected(Eval("Id")) %>'>选择</a>
                                        </td>
                                        <td>
                                            <%# Eval("Caption") %>
                                        </td>
                                        <td>
                                            <%# Eval("Code") %>
                                        </td>
                                        <td>
                                            <%# Eval("Package") %>
                                        </td>
                                        <td>
                                            <%# Eval("Version") %>
                                        </td>
                                        <td>
                                            <%# Eval("Type") %>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                </FooterTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                </div>
            </td>
            <td style="width: 200px; vertical-align: top">
                <div class="box">
                    <h2>视图列表</h2>
                    <div class="block">
                        <table class="list">
                            <thead>
                                <tr>
                                    <th>标题
                                    </th>
                                    <th>名称
                                    </th>
                                </tr>
                            </thead>
                            <asp:Repeater ID="_ctlListView" runat="server">
                                <HeaderTemplate>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%# Eval("Caption") %></td>
                                        <td>
                                            <%# Eval("Code") %>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                </FooterTemplate>
                            </asp:Repeater>

                        </table>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </div>
    </div>
</asp:Content>
